package com.permisson;

/**
 * Time    : 2023/3/19 17:26
 * Author  : 王摇摆
 * FileName: samePackageNoExtend.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class samePackageNoExtend {
    public static void main(String[] args) {
        Source source = new Source();

        source.publicint = 1;
        source.protectedint = 2;
        source.defaultint = 3;
        /**
         * //private修饰符只能类内访问，同包中继不继承都不能访问
         *         source.privateint=4
         */

        source.methodpublic();
        source.methodprotected();
        source.methoddefault();
//        source.methodprivate();//
    }
}
